import { reactive, toRefs, onMounted } from 'vue'
import { analyseSourceStore } from '@/store/analyseSource'
export default  function AnalyseIndex(){
  // 怎么设计数据
  const store = analyseSourceStore()
  onMounted(async ()=>{
   await store.gethuResourList()
  })
    const tableRowClassName = ({ row, rowIndex }) => {
        if (rowIndex % 2 === 1) {
            return "warning-row";
        } else {
            return "success-row";
        } 
    }
    const handleSelectionChange=(select)=>{
      console.log(select);
      store.clickCheckbox(select)
    }
  return{tableRowClassName,handleSelectionChange}
}
// https://gitee.com/li-luping08040306/vue3.2-vite-ts.git